package com.wrupple.muba.catalogs.client.widgets.fields.providers;

import com.google.gwt.cell.client.Cell;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.wrupple.muba.catalogs.client.activity.process.task.CatalogInteractionState.Mode;
import com.wrupple.muba.catalogs.client.cms.service.CatalogManagementSystem;
import com.wrupple.muba.catalogs.client.module.services.presentation.CatalogFormFieldProvider;
import com.wrupple.muba.catalogs.client.widgets.fields.cells.GenericValueCell;
import com.wrupple.muba.catalogs.domain.JsCatalogKey;
import com.wrupple.muba.common.shared.State.ProcessManager;
import com.wrupple.vegetate.domain.FieldDescriptor;

public class GenericValueCellProvider implements CatalogFormFieldProvider {

	private CatalogManagementSystem cms;

	@Inject
	public GenericValueCellProvider(CatalogManagementSystem cms) {
		super();
		this.cms = cms;
	}

	@Override
	public Cell<JsCatalogKey> createCell(EventBus bus, ProcessManager pm,
			FieldDescriptor d, Mode mode) {
		return new GenericValueCell(cms, bus, pm, d, mode);
	}

}
